package com.ldb.Controller.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.validator.constraints.NotEmpty;

@Entity
@Table(name="students")
public class Student {

	@Id
	@GeneratedValue(generator = "system-uuid")    
	@GenericGenerator(name = "system-uuid", strategy = "uuid") 
	@Column(name="student_id")
	private String student_id;
	
	@Column(length=32,nullable=false)
	private String name;
	
	@Column()
	private String description = "这个家伙很懒，现在什么也不想说！";
	
	@Column(length=4)
	private String sex = "男";
	
	@Column(length=15)
	private String sno;
	
	@Column(length=128)
	private String imageUrl = "../images/14.jpg";
	
	public String getStudent_id() {
		return student_id;
	}

	public void setStudent_id(String student_id) {
		this.student_id = student_id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}
	
	public String getSno() {
		return sno;
	}

	public void setSno(String sno) {
		this.sno = sno;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getImageUrl() {
		return imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}
}
